package com.bw.ivideoproject.db.dao

import androidx.room.Dao
import androidx.room.Delete
import androidx.room.Insert
import androidx.room.Query
import com.bw.ivideoproject.db.entity.HistoryEntity
import kotlinx.coroutines.flow.Flow


@Dao
interface HistoryDao {

    @Insert
    fun insert(vararg historyEntity: HistoryEntity)

    @Query("SELECT * FROM b_history")
    fun getAll(): List<HistoryEntity>

    @Delete
    fun remove(entity: HistoryEntity)
}
